package com.iflytek.uoamp.notify.core.action;

import com.iflytek.uoamp.common.notify.enumerate.Type;

public class NotifyActionFactory {
	
    public static AbstractNotifyAction getNotifyAction(Type packType) {
        switch(packType) {
        case FULL:
            return new FullNotifyAction();
        case FULL_TEMPLATE:
            return new TemplateNotifyAction();
        case SEND_ONLY:
            return new ImmediateNotifyAction();
        default:
            return null;
        }
    }
}
